#!/bin/sh
# chkconfig: 35 20 90
# description: Go httpd

propath=/opt/gohttpd
. /etc/rc.d/init.d/functions
case "$1" in
start)
	cd $propath
	nohup ./gohttpd >/dev/null 2>&1 &
    ;;
stop)
	killall gohttpd -9
    ;;
status)
	ps -C gohttpd
    ;;
*)
    echo "Usage: $0 {start|stop|status}"
    exit 1
esac
exit 0
